C code for PEGetSectionFormat and PESetSectionFormat

The following code demonstrates how to use the PEGetSectionFormat and PESetSectionFormat functions:

PEGetSectionFormat

short        sectionCode;
    // The section we are interested in
struct PESectionOptions options;
sectionCode = PE_DETAILSECTION;
    // The details section
    // Initialize size of options structure
options.StructSize = sizeof(PESectionOptions);
if (!PEGetSectionFormat(Job, sectionCode, &options)){
    // Handle error
}

PESetSectionFormat

short        sectionCode;
    // The section we are interested in
struct PESectionOptions options;
sectionCode = PE_DETAILSECTION;
    // The details section
    // Initialize options structure
options.StructSize = sizeof(PESectionOptions);
options.visible = TRUE;
options.newPageBefore = FALSE;
options.newPageAfter = FALSE;
options.keepTogether = TRUE;
options.suppressBlankLines = PE_UNCHANGED;
    // leave as is
options.resetPageNAfter = FALSE;
options.printAtBottomOfPage = FALSE;
if (!PESetSectionFormat(Job, sectionCode, &options)){
    // Handle error
}


Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com